package com.yystudy.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yystudy.model.system.SysRole;
import com.yystudy.model.vo.AssginRoleVo;
import com.yystudy.model.vo.SysRoleQueryVo;

import java.util.Map;

public interface SysRoleService extends IService<SysRole> {

    /**
     * 条件分页查询
     * @return
     */
    IPage<SysRole> selectPage(Page<SysRole> sysRolePage, SysRoleQueryVo sysRoleQueryVo);


    Map<String, Object> getRoleByUserId(Long userId);


    void doAssign(AssginRoleVo assginRoleVo);
}
